namespace Vision.Abstractions
{
	/// <summary>
	/// 相机采集到的一帧图像数据消息。
	/// </summary>
	public sealed class CameraFrameMessage : Message
	{
		/// <summary>图像数据（灰度 8bit）。</summary>
		public byte[] ImageData { get; }
		/// <summary>图像宽度（像素）。</summary>
		public int Width { get; }
		/// <summary>图像高度（像素）。</summary>
		public int Height { get; }

		/// <param name="imageData">图像字节数据（按行连续存储）。</param>
		/// <param name="width">宽度。</param>
		/// <param name="height">高度。</param>
		public CameraFrameMessage(byte[] imageData, int width, int height)
		{
			ImageData = imageData;
			Width = width;
			Height = height;
		}

    }
}


